﻿namespace RayDen.Library.Core.Components
{
    public abstract class Singleton<TInstance>
        where TInstance : class, new()
    {
        protected static readonly TInstance instance = new TInstance();

        protected Singleton()
        {            
        }

        public static TInstance Instance
        {
            get { return instance; }
        }

    }
}